package ptumall.config;

import lombok.Data;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties(prefix = "aliyun.oss") // 确保前缀与配置文件一致
@Data
public class AliyunOssConfig {
    private String endPoint;
    private String bucketName;
    private String accessKeyId;   // 字段名必须与配置文件中的键匹配
    private String accessKeySecret;
}
